//
//  InfomationModel.m
//  Shengzhuli
//
//  Created by FXGuo on 2017/4/20.
//  Copyright © 2017年 kamangkeji. All rights reserved.
//

#import "InfomationModel.h"

@implementation InfomationModel

- (instancetype)initWithDict:(NSDictionary *)dict
{
    if (self = [super init]) {
        self.avatarUrl = dict[@"avatarUrl"];
        self.ID = [dict[@"id"] integerValue];
        self.title = dict[@"title"];
        self.subtitle = dict[@"subtitle"];
        self.viewCount = [dict[@"viewCount"] integerValue];
        self.videoName = dict[@"videoName"];
        self.videoUrl = dict[@"videoUrl"];
    }
    return self;
}

+ (instancetype)objectWithDict:(NSDictionary *)dict
{
    return [[InfomationModel alloc]initWithDict:dict];
}


@end
